﻿using YNTK.Common.Const;
using SqlSugar;
using System;

namespace YNTK.SubDev.Entitys
{
    /// <summary>
    /// 产品管理
    /// </summary>
    [SugarTable("zy_oa_product")]
    [Tenant(ClaimConst.TENANT_ID)]
    public class ZyOaProductEntity
    {
        /// <summary>
        /// 自然主键
        /// </summary>
        [SugarColumn(ColumnName = "F_Id", IsPrimaryKey = true)]
        public string Id { get; set; }
        
        /// <summary>
        /// 产品编号
        /// </summary>
        [SugarColumn(ColumnName = "F_Encode")]        
        public string Encode { get; set; }
        
        /// <summary>
        /// 产品名称
        /// </summary>
        [SugarColumn(ColumnName = "F_Name")]        
        public string Name { get; set; }
        
        /// <summary>
        /// 产品类型
        /// </summary>
        [SugarColumn(ColumnName = "F_Type")]        
        public string Type { get; set; }
        
        /// <summary>
        /// 产品品牌
        /// </summary>
        [SugarColumn(ColumnName = "F_Brand")]        
        public string Brand { get; set; }
        
        /// <summary>
        /// 最低销售价
        /// </summary>
        [SugarColumn(ColumnName = "F_LowerPrice")]        
        public decimal LowerPrice { get; set; }
        
        /// <summary>
        /// 市场参考价
        /// </summary>
        [SugarColumn(ColumnName = "F_ProposedPrice")]        
        public decimal ProposedPrice { get; set; }
        
        /// <summary>
        /// 产品进价
        /// </summary>
        [SugarColumn(ColumnName = "F_InPrice")]        
        public decimal InPrice { get; set; }
        
        /// <summary>
        /// 税率
        /// </summary>
        [SugarColumn(ColumnName = "F_Tax")]        
        public decimal Tax { get; set; }
        
        /// <summary>
        /// 库存预警上限
        /// </summary>
        [SugarColumn(ColumnName = "F_Submaxv")]        
        public int? Submaxv { get; set; }
        
        /// <summary>
        /// 库存预警下限
        /// </summary>
        [SugarColumn(ColumnName = "F_Subminv")]        
        public int? Subminv { get; set; }
        
        /// <summary>
        /// 单位
        /// </summary>
        [SugarColumn(ColumnName = "F_Unit")]        
        public string Unit { get; set; }
        
        /// <summary>
        /// 产品图片
        /// </summary>
        [SugarColumn(ColumnName = "F_Photos")]        
        public string Photos { get; set; }
        
        /// <summary>
        /// 产品干系人
        /// </summary>
        [SugarColumn(ColumnName = "F_DesPerson")]        
        public string DesPerson { get; set; }
        
        /// <summary>
        /// 报价时间
        /// </summary>
        [SugarColumn(ColumnName = "F_PriceTime")]        
        public DateTime? PriceTime { get; set; }
        
        /// <summary>
        /// 排序
        /// </summary>
        [SugarColumn(ColumnName = "F_SortCode")]        
        public long SortCode { get; set; }
        
        /// <summary>
        /// 有效标志
        /// </summary>
        [SugarColumn(ColumnName = "F_EnabledMark")]        
        public int? EnabledMark { get; set; }
        
        /// <summary>
        /// 创建时间
        /// </summary>
        [SugarColumn(ColumnName = "F_CreatorTime")]        
        public DateTime? CreatorTime { get; set; }
        
        /// <summary>
        /// 创建用户
        /// </summary>
        [SugarColumn(ColumnName = "F_CreatorUserId")]        
        public string CreatorUserId { get; set; }
        
        /// <summary>
        /// 修改时间
        /// </summary>
        [SugarColumn(ColumnName = "F_LastModifyTime")]        
        public DateTime? LastModifyTime { get; set; }
        
        /// <summary>
        /// 修改用户
        /// </summary>
        [SugarColumn(ColumnName = "F_LastModifyUserId")]        
        public string LastModifyUserId { get; set; }
        
        /// <summary>
        /// 产品状态（1-正在进行，2-暂停）
        /// </summary>
        [SugarColumn(ColumnName = "F_State")]        
        public string State { get; set; }
        
        /// <summary>
        /// 最后状态
        /// </summary>
        [SugarColumn(ColumnName = "F_LastTrackState")]        
        public int? LastTrackState { get; set; }
        
        /// <summary>
        /// 说明
        /// </summary>
        [SugarColumn(ColumnName = "F_Remark")]        
        public string Remark { get; set; }
        
        /// <summary>
        /// 附件
        /// </summary>
        [SugarColumn(ColumnName = "Appendix")]        
        public string Appendix { get; set; }
        
        /// <summary>
        /// 批注列表Json
        /// </summary>
        [SugarColumn(ColumnName = "F_PostilJson")]        
        public string PostilJson { get; set; }
        
        /// <summary>
        /// 批注总数
        /// </summary>
        [SugarColumn(ColumnName = "F_PostilCount")]        
        public int? PostilCount { get; set; }
        
        /// <summary>
        /// 
        /// </summary>
        [SugarColumn(ColumnName = "Spare1")]        
        public string Spare1 { get; set; }
        
        /// <summary>
        /// 
        /// </summary>
        [SugarColumn(ColumnName = "Spare2")]        
        public string Spare2 { get; set; }
        
        /// <summary>
        /// 
        /// </summary>
        [SugarColumn(ColumnName = "Spare3")]        
        public string Spare3 { get; set; }
        
    }
}
